<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<% 
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>用户登录</title>
    
  </head>
  <body>
	<div class="login">
	
		<div style="text-align: center; margin-top: 100px;">
			<h2>图书借阅系统</h2>
		</div>
			
		<div style="text-align: center;">
			<%-- action 表示后台那个请求接受登录
				Servlet
			--%>
			<form action="userInfo/login" method="post">
				<div class="login_div">
					<label>登录账号:</label><input type="text" name="userCode" value="qqqqqq"/>
				</div>
				<div class="login_div">
					<label>登录密码:</label><input type="password" name="password" value="111111" />
				</div>
				<div style="text-align: center;margin: 30px 0px 0px 22px;">
					<div text-align:center;">
						<div style="color: red;font-size: 21px;font-weight: bold;">${errorMsg}</div>
						<div class="float_left">
							<label><input type="submit" value="登录|login" /> </label> <label>
								<a href="Register.jsp" style="text-decoration: none"> <input
									type="button" value="用户注册" /> </a> </label>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
  </body>
</html>
